package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.CrmOperationRecordExample.E_CUSTOMER_ID;
import static org.jsola.hr.example.CrmOperationRecordExample.E_OPERATION_NAME;
import static org.jsola.hr.example.CrmOperationRecordExample.E_OPERATION_TYPE;
import static org.jsola.hr.example.CrmOperationRecordExample.E_RECORD_INFO;
import static org.jsola.hr.example.CrmOperationRecordExample.M_CUSTOMER_ID_MAX;
import static org.jsola.hr.example.CrmOperationRecordExample.M_CUSTOMER_ID_NOT_NULL;
import static org.jsola.hr.example.CrmOperationRecordExample.M_OPERATION_NAME_MAX;
import static org.jsola.hr.example.CrmOperationRecordExample.M_OPERATION_NAME_NOT_NULL;
import static org.jsola.hr.example.CrmOperationRecordExample.M_RECORD_INFO_MAX;
import static org.jsola.hr.example.CrmOperationRecordExample.N_CUSTOMER_ID;
import static org.jsola.hr.example.CrmOperationRecordExample.N_OPERATION_NAME;
import static org.jsola.hr.example.CrmOperationRecordExample.N_OPERATION_TYPE;
import static org.jsola.hr.example.CrmOperationRecordExample.N_RECORD_INFO;

/**
 * 操作记录表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【操作记录表】的参数")
@Data
public class CrmOperationRecordAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_CUSTOMER_ID, example = E_CUSTOMER_ID, required = true)
    @NotNull(message = M_CUSTOMER_ID_NOT_NULL)
    @Length(max = 32, message = M_CUSTOMER_ID_MAX)
    private String customerId;

    @ApiModelProperty(notes = N_RECORD_INFO, example = E_RECORD_INFO)
    @Length(max = 100, message = M_RECORD_INFO_MAX)
    private String recordInfo;

    @ApiModelProperty(notes = N_OPERATION_TYPE, example = E_OPERATION_TYPE)
    private Integer operationType;

    @ApiModelProperty(notes = N_OPERATION_NAME, example = E_OPERATION_NAME, required = true)
    @NotNull(message = M_OPERATION_NAME_NOT_NULL)
    @Length(max = 32, message = M_OPERATION_NAME_MAX)
    private String operationName;




}

